<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>NeverGetMe</title>
    <link rel="shortcut" th:href="@{/icon/java.svg}"/>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
          integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <script src="https://code.jquery.com/jquery-3.4.1.min.js"
            integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
            crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
            integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
            crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
            integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
            crossorigin="anonymous"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <script src="https://cdn.bootcss.com/echarts/4.2.1-rc1/echarts-en.common.js"></script>
</head>
<body>
<div th:replace="header::html"></div>

<div class="container text-center">
    <div id="statisticalData" style="width: auto;height:400px;"></div>
    <div id="TagsArticleCountStatistics" style="width: auto;height:400px;"></div>
    <div id="PageViewCount" style="width: auto;height:400px;"></div>
</div>
<div th:replace="footer::html"></div>
<script th:src="@{/myjs/header.js}"></script>
<script th:src="@{/myjs/addsvg.js}"></script>
<script th:src="@{/myjs/loadCharts.js}"></script>
<script>
    readUserInfo();
    var myChart = echarts.init(document.getElementById('statisticalData'));
    var tagsArticleCountStatisticsChart = echarts.init(document.getElementById("TagsArticleCountStatistics"));
    var pageViewCount = echarts.init(document.getElementById("PageViewCount"));

</script>
<script>
    $(document).ready(function () {
        loadAllCharts({
            'PublishDate': myChart,
            'TagsArticleCount': tagsArticleCountStatisticsChart,
            'PageViewCount': pageViewCount
        });
    });
</script>
</body>
</html>